let config = require('../../config/admin/navConfig');

module.exports = app => {
  return class AppController extends app.Controller {
    async index() {
      const { ctx } = this;
      let { name, id , is_super } = ctx.session;
      await ctx.renderClient('admin/admin.js',{
        Username : name,
        UserId : id,
        is_super:is_super,
        navData:config(is_super).navData
      })
    }
  };
};
